import { tokenPath as tokenUrl } from "./type";
//端口号
export const isHttps = true;
export const httpPort = 80;
export const httpsPort = 443;
//cookie秘钥
export const dbrootname = "root";
export const dbrootpwd = "123456";
export const dbtab = "grbk";
export const key = "feifan";
//文件名
export const filestr = "file";
//token拦截请求
export const tokenPath: tokenUrl = [
  { path: "/api/user/islogin", method: "POST" },
  { path: "/api/user/file", method: "POST" },
  { path: "/api/user/userupdate", method: "POST" },
  { path: "/api/article/add", method: "POST" },
  { path: "/api/comment/submit", method: "POST" },
  { path: "/api/articlecomment/add", method: "POST" },
  // { path: "/api/comment/update", method: "POST" },

  { path: "/api/user/getuserlist", method: "POST" },
  { path: "/api/user/rootchange", method: "POST" },
];
//那些文件格式可以上传
export const img = [".img", ".png", "jpeg", ".webs", ".gif"];
//token有些事件
export const tokenTime: number = 10800;
